package introduction;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.DeclareParents;

import calculator.IMaxCalculator;
import calculator.IMinCalculator;
import calculator.MaxCalculatorImp;
import calculator.MinCalculatorImp;

@Aspect
public class CalculatorIntroduction {
	@DeclareParents(
		value="calculator.ArithmeticCalculatorImp",//目标类，相当于子类
		defaultImpl=MaxCalculatorImp.class//相当于父类
	)
	public IMaxCalculator maxCalculator;
	
	
	@DeclareParents(
		value="calculator.ArithmeticCalculatorImp",
		defaultImpl=MinCalculatorImp.class
	)
	public IMinCalculator minCalculator;
	
}
